<?php

namespace Part07_ProxyPattern\Code1;
/**
 * @desc: 追求者类
 */
class Pursuit
{
    private $schoolGirl;

    public function __construct($pursuitName, $schoolGirl)
    {
        $this->schoolGirl = $schoolGirl;
        echo "[$pursuitName]想追求[$schoolGirl]\n";
    }

    public function giveDolls()
    {
        echo '送了洋娃娃给' . $this->schoolGirl . "\n";
    }

    public function giveFlowers()
    {
        echo '送了鲜花给' . $this->schoolGirl . "\n";
    }

    public function giveChocolate()
    {
        echo '送了巧克力给' . $this->schoolGirl . "\n";
    }
}